export let LatencySimulator = function () {}

LatencySimulator._sleep = function (timeountMS) {
  return new Promise((resolve) => setTimeout(resolve, timeountMS))
}

LatencySimulator.AsyncSleep = async function (timeountMS) {
  ;(async () => {
    await LatencySimulator._sleep(Math.random() * timeountMS)
  })()
}
